<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="${CONTEXT_PATH}/" />
<title>学生信息管理系统登录</title>
<script type="text/javascript">
	function resetValue() {
		document.getElementById("userName").value = "";
		document.getElementById("password").value = "";
	}
</script>
</head>
<body>
	<div align="center" style="padding-top: 50px;">
		<form action="login/check" method="post">
			<table width="740" height="500" background="images/login.jpg">
				<tr height="180"></tr>
				<tr height="10">
					<td width="40%"></td>
					<td width="10%">用户名：</td>
					<td><input type="text" name="user.userName" id="userName" value="${user.userName }"></td>
					<td width="30%"></td>
				</tr>
				<tr height="10">
					<td width="40%"></td>
					<td width="10%">密码：</td>
					<td><input type="password" name="user.password" id="password" value="${user.password }" ></td>
					<td width="30%"></td>
				</tr>
				<tr height="10">
					<td width="40%"></td>
					<td width="10%"><input type="submit" value="登录"> </td>
					<td><input type="button" value="重置" onclick="resetValue()"></td>
					<td width="30%"></td>
				</tr>
				<tr height="10">
					<td width="40%"></td>
					<td colspan="3">
						<font color="red">${error }</font>
					</td>
				</tr>
				<tr></tr>
			</table>
		</form>
	</div>
	
</body>
</html>